<div class="page">
	<div class="layoutBox">
        <div class="pageHeader">
            <form id="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
            <input type="hidden" name="pageNum" value="1"/>
            <input type="hidden" name="_search_likes" value="*"/><!--哪些字段是模糊查询，逗号分隔，*为所有-->
            <div class="searchBar">
                <ul class="searchContent">
                    <li>
                        <label>父级分类：</label>
                        <label>
                        <input type="text" size="30" readonly="readonly" id="categoryName_index2" name="categoryName" value="{$Think.request.categoryName}"/>
                        <a class="unit btn" href="__APP__/Ui/tree/selparent/1/selmore/1/cid/pid_index2/cname/categoryName_index2/selroot/1" target="dialog" rel="tree" mask="true" title="选择分类" width="400" height="450">选择分类</a>
                        <input type="hidden" id="pid_index2" name="classpid" value="{$Think.request.classpid}" />
                        </label>
                    </li>
                    <li>
                        <label>分类名：</label>
                        <input name="classtitle" type="text" value="{$_REQUEST.classtitle}" size="30"/>
                    </li>
                    <li>
                        <label>模型名：</label>
                        <SELECT name="classmodule">
                        <option value="">选择模型</option>
                        <volist name="classmodule" id="vo">
                            <option value="{$key}" <eq name="key" value="$_REQUEST.classmodule">selected</eq>>{$vo}</option>
                        </volist>
                        </SELECT>
                    </li>
                </ul>
                <div class="subBar">
                    <ul>
                        <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
                    </ul>
                </div>
            </div>
            </form>
        </div>
	
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="__URL__/add/tid/{$Think.request.tid}" target="dialog" width="590" height="450" mask="true"><span>新增</span></a></li>
				<li><a class="edit" href="__URL__/edit/classid/{sid_category}" target="dialog"  width="590" height="450" mask="true" warn="请选择一条记录"><span>编辑</span></a></li>
				<li><a class="delete" href="__URL__/foreverdelete/navTabId/__MODULE__" target="selectedTodo" posttype="string" rel="classid" title="确实要删除这些记录吗？" warn="请至少选择一条记录"><span>删除</span></a></li>
				<li class="line">line</li>
				<li><a class="add" href="__APP__/Ui/tree/selparent/1/selmore/0/link/edit" target="dialog" width="400" height="450" rel="tree"><span>树形结构显示</span></a> </li>
			</ul>
		</div>
        
		<table class="list" width="100%" layoutH="100">
			<thead>
			<tr>
				<th><input type="checkbox" group="classid" class="checkboxCtrl"></th>
				<th>编号</th>
				<th>分类名</th>
				<th>所属父类</th>
				<th>所属模型</th>
				<th>关键字</th>
				<th>URL重写</th>
				<th>分类模板</th>
				<th>文章模板</th>
				<th>排序值</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			</thead>
			<tbody>
			<volist id="vo" name="list">
				<tr target="sid_category" rel="{$vo['classid']}">
					<td><input type="checkbox" name="classid" value="{$vo['classid']}" /></td>
					<td>{$vo['classid']}</td>
					<td><a class="edit" href="__URL__/edit/classid/{$vo['classid']}" target="dialog"  width="590" height="450" mask="true">{$vo['classtitle']}</a></td>
					<td>{$vo['classpid']|getCategoryName}</td>
					<td>{$vo['classmodule']|getModuleName}</td>
					<td>{$vo['classkeywords']}</td>
					<td>{$vo['classrewrite']}</td>
					<td>{$vo['classtemplate']}</td>
					<td>{$vo['newstemplate']}</td>
					<td onclick="setSort('__URL__',this,{$vo['classid']})" class="xingmu">{$vo['classsort']}</td>
					<td>{$vo['classstatus']|getStatus}</td>
					<td>{$vo['classstatus']|showStatus=$vo['classid']}&nbsp;|&nbsp;<a class="delete" href="__URL__/foreverdelete/classid/{$vo['classid']}/navTabId/__MODULE__" target="ajaxTodo" title="确实要删这条记录吗？"><span>删除</span></a>&nbsp;|&nbsp;<a href="__ROOT__/index.php/{$vo['classmodule']}/index/id/{$vo['classid']}" target="_blank"><span>预览</span></a></td>
				</tr>
			</volist>
			</tbody>
		</table>
        
		<div class="panelBar">
			<div class="pages">
				<span>共{$totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
		</div>

	</div>
	
</div>

